import { useAdminStore } from '@/store';

const auth = name => {
  const adminStore = useAdminStore();
  return (adminStore.role_routes && adminStore.role_routes.includes(name));
};

export default auth;